package com.quad.innovators.salesease.model.query;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class LoginQuery {

    @Schema(description="手机号码")
    @NotBlank(message = "手机号码不能为空")
    @Pattern(regexp = "^$|^1(3\\d|4[5-9]|5[0-35-9]|6[2567]|7[0-8]|8\\d|9[0-35-9])\\d{8}$", message = "手机号码格式不正确")
    private String telephone;

    @Schema(description = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;

    @Schema(description = "验证码ID")
    private String captchaKey;

    @Schema(description = "验证码")
    private String captchaResult;
}
